﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Temapb1_ip
{
    class Fabrica_Sedan : Fabrica
    {
        Sedan masina = new Sedan();
        string culoare;
        int i=0;
        public override Masina Initializare_Masina()
        {
            Console.WriteLine("Introduceti numele masinii");
            masina.set_nume(Console.ReadLine());
            Console.WriteLine("Introduceti dotarile masinii");
            masina.set_dotari(Console.ReadLine());
            Console.WriteLine("Introduceti motorizarea masinii");
            masina.set_motorizare(Console.ReadLine());
            Console.WriteLine("Introduceti dimensiunile masinii");
            masina.set_dimensiuni(Console.ReadLine());
            Console.WriteLine("Introduceti culoarea masinii ");
            culoare = Console.ReadLine();
            Console.WriteLine("Ce tip de culoare doriti? ");
            Console.WriteLine("1.Metalizata");
            Console.WriteLine("2.Nemetalizata");
            i = Convert.ToInt32(Console.ReadLine());
            if (i == 1)
            {
                masina.set_culoare(culoare + " metalizata");
            }
            else
                if (i == 2)
                {
                    masina.set_culoare(culoare + " nemetalizata");
                }
                else
                {
                    Console.WriteLine("Optiunea aleasa nu exista, va rugam sa reintroduceti datele masinii");
                    Initializare_Masina();
                }

            Console.WriteLine("Introduceti transmisia masinii ");
            masina.set_transmisie(Console.ReadLine());
            return masina;
        }
        /*
        public void afisare_masina_sedan()
        {
            Console.WriteLine("Nume : {0}", masina.get_nume());
            Console.WriteLine("Tip : Sedan");
            Console.WriteLine("Dotari : {0}", masina.get_dotari());
            Console.WriteLine("Motorizare : {0}", masina.get_motorizare());
            Console.WriteLine("Dimensiuni : {0}", masina.get_dimensiuni());
            Console.WriteLine("Culoare : {0}",masina.get_culoare());
            Console.WriteLine("Transmisie : {0}",masina.get_transmisie());
        }*/
    }
}
